package edu.hitwh.client;

import edu.hitwh.record.BorrowerRecord;
import edu.hitwh.record.LibrarianRecord;
import edu.hitwh.wrapper.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "auth-service", path = "/auth")
public interface AuthApi {
    @PostMapping("/borrower")
    Resp<Boolean> authenticateBorrower(@RequestBody BorrowerRecord borrowerRecord);

    @PostMapping("/librarian")
    Resp<Boolean> authenticateLibrarian(@RequestBody LibrarianRecord librarianRecord);
}